using AutoMapper;
using Bean.Entity;

namespace Bean.Infrastructure.AutoMapper;

public class MappingProfile : Profile
{
    public MappingProfile()
    {
        // 定义 Student 到 StudentDto 的映射
        // CreateMap<Student, StudentDto>()
        //     .ForMember(dest => dest.SexDescription, opt => 
        //         opt.MapFrom(src => src.Sex == 1 ? "男" : "女"));
        
        CreateMap<PolicySysRule, PolicySysRuleInfoDto>();
    }
}